package com.system.service.impl;

import com.system.mapper.AppealMapper;
import com.system.po.Appeal;
import com.system.po.CollegeExample;
import com.system.service.AppealService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service
public class AppealServiceImpl implements AppealService {

    @Resource
    private AppealMapper appealMapper;

    public List<Appeal> finAll() throws Exception {
        CollegeExample collegeExample = new CollegeExample();
        CollegeExample.Criteria criteria = collegeExample.createCriteria();

        criteria.andCollegeidIsNotNull();


        return null;
    }

    public List<Appeal> selectList(Appeal appeal) {
        return appealMapper.selectList(appeal);
    }

    public int insert(Appeal appeal) {
        return appealMapper.insert(appeal);
    }

    public int update(Appeal appeal) {
        return appealMapper.update(appeal);
    }

    public int deleteById(Integer id) {
        return appealMapper.deleteById(id);
    }

    public void del(Integer studentid, Integer courseid) {
        appealMapper.del(studentid,courseid);
    }

    public Map getById(Integer id) {
        return appealMapper.getById(id);
    }
}
